import {
	request
} from '../request.js'
const earnings = {
	initData(params) {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/commission/list',
			params:params
		})
	},
	commissiontotal() {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/commission/total'
			
		})
	},
	rebate(params) {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/rebate/list',
			params:params
		})
	},
	rebatetotal() {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/rebate/total'
			
		})
	},
	bonus(params) {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/bonus/list',
			params:params
		})
	},
	bonustotal() {
		return request({
			method: 'Get',
			url: '/api/agent/front/agent/bonus/total'
			
		})
	}

}
export default earnings;